Skip to main content

Field Changed Context

表单字段值变化上下文 (fieldChangedContext) 提供对表单字段值变化的引用。

API

属性类型描述
fieldNamestring发生值改变的字段名称。
subGridNamestring发生值改变的字段如果归属于一个子表行,则 subGridName 就是子表的名称。
subGridLinenumber发生值改变的字段如果归属于一个子表行,则 subGridLine 就是子表行的索引。该值是从 0 开始。
currentFieldFieldNode返回发生值改变的字段引用。
thisApp.fieldOnChanged = function(ctx) {
const currentCtx = ctx.getCurrentContext();
console.log('field changed', currentCtx)
}